package com.house.service;

import com.house.entity.Collect;
import com.house.mapper.CollectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CollectService {
    @Autowired
    private CollectMapper collectMapper;

    public List<Collect> findAllByUserId(int userId){
        return collectMapper.findAllByUserId(userId);
    }

    public void insertOne(int userId,int houseId){
        collectMapper.insertOne(userId,houseId);
    }


}
